#include <stdio.h>

void main()
{
	int arr[100]={0};
	int i=0,count=0,j=0;
	
	for(i=0;scanf("%d",&arr[i])!=EOF;i++)
	{
		
	count++;	
		
	}
	
	for(i=0,j=count-1;;i++,j--)
	{
		if(count%2==0)
		{
		arr[i]=arr[i]^arr[j];
		arr[j]=arr[i]^arr[j];
		arr[i]=arr[i]^arr[j];
	    if(i==j+1)
	    break;
		}
		else
		{
		if(i==j)
		break;
		arr[i]=arr[i]^arr[j];
		arr[j]=arr[i]^arr[j];
		arr[i]=arr[i]^arr[j];
		}
		
		
	}
	
	for(i=0;i<=count-1;i++)
	{
		printf(" %d",arr[i]);
	}
	
	
}


